<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>精灵图</title>
    <style>
      .box1 {
        width: 60px;
        height: 60px;
        margin: 100px auto;
        background: url(../image/sprites.png) no-repeat -182px 0;
        /* background-position: -182px 0; */
      }
      .box2 {
        width: 27px;
        height: 25px;
        margin: 150px;
        background: url(../image/sprites.png) no-repeat -155px -106px;
      }
    </style>
  </head>
  <body>
    <!-- 
        精灵技术的目的：为了有效地减少服务器接收和发送请求的次数，提高页面的加载速度

     -->

    <div class="box1"></div>
    <div class="box2"></div>
  </body>
</html>
